package kr.hkit.powerjava.chapter06;

import java.util.Scanner;

public class Pay {
	public static void main(String[] args) {
		final int RATE = 5000;
		int pay;
		int hours;
		
		Scanner scInput = new Scanner(System.in);
		
		System.out.print("시간을 입력하시오: ");
		hours = scInput.nextInt();
		
		if (hours > 8)
			pay = RATE * (int)(1.5*RATE*(hours-8));
		else
			pay = RATE * hours;
		
		System.out.printf("임금은 %,d 입니다. %n", pay);
	}
}
